home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
showhi1a
/
form1.frm
next >
Wrap
Text File
|
1999-07-22
|
2KB
|
59 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "Show the task bar"
Height = 525
Left = 1770
TabIndex = 1
Top = 1950
Width = 1245
End
Begin VB.CommandButton Command1
Caption = "Hide the Taskbar"
Height = 525
Left = 1710
TabIndex = 0
Top = 900
Width = 1245
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim hwnd As Long
hwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
End Sub
Private Sub Command2_Click()
Dim hwnd As Long
hwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim hwnd As Long
hwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
End Sub